package com.ziyueyuwen.xiniao.bean.homework;

import com.ziyueyuwen.xiniao.enums.HomeworkStatusEnum;

import static com.ziyueyuwen.xiniao.enums.HomeworkStatusEnum.NOT_START;

/**
 * @author wancheng  on 2018/12/27.
 */
public class HomeworkRecordStatusDO {

    private Integer homeworkRecordId;

    private HomeworkStatusEnum status = NOT_START;

    private Boolean ifMark;

    public HomeworkRecordStatusDO() {
    }

    public HomeworkRecordStatusDO(Integer homeworkRecordId, HomeworkStatusEnum status, Boolean ifMark) {
        this.homeworkRecordId = homeworkRecordId;
        this.status = status;
        this.ifMark = ifMark;
    }

    public HomeworkRecordStatusDO(Integer homeworkRecordId, HomeworkStatusEnum status) {
        this.homeworkRecordId = homeworkRecordId;
        this.status = status;
    }

    public Integer getHomeworkRecordId() {
        return homeworkRecordId;
    }

    public HomeworkRecordStatusDO setHomeworkRecordId(Integer homeworkRecordId) {
        this.homeworkRecordId = homeworkRecordId;
        return this;
    }

    public HomeworkStatusEnum getStatus() {
        return status;
    }

    public HomeworkRecordStatusDO setStatus(HomeworkStatusEnum status) {
        this.status = status;
        return this;
    }

    public Boolean getIfMark() {
        return ifMark;
    }

    public HomeworkRecordStatusDO setIfMark(Boolean ifMark) {
        this.ifMark = ifMark;
        return this;
    }

    @Override
    public String toString() {
        return "HomeworkRecordStatusDO{" +
                "homeworkRecordId=" + homeworkRecordId +
                ", status=" + status +
                ", ifMark=" + ifMark +
                '}';
    }
}
